Start transaction, commit and rollback syntaxStart Transaction | Begin [Work]commit [Work] [and [No] chain] [[No] release]rollback [work] [and [No] chain] [[No] release]set autocommit = { 0 | The 1}start transaction or BEGIN statement can begin a
Understanding of mysql transaction commit and rollback errors, mysql transaction
I. Cause
Begin or start transaction to START a TRANSACTION
Rollback transaction rollbackCommit transaction validation
The transaction is interpreted as follows: a
Start transaction,COMMIT, AndROLLBACKSyntax
From: http://dev.mysql.com/doc/refman/5.0/en/commit.html
Of course, the article noted from MySQL, but MySQL, SQL Server, Oracle start tracmsaction, commit, and rollback syntax are no problem in DML.
I hope
First, causesBegin or start transaction start a transactionROLLBACK TRANSACTION RollbackCommit TRANSACTION AcknowledgementThe interpretation of a transaction is as follows: A transaction consists of one or more SQL statements that act as a single
From the functional partition, the SQL language can be divided into three categories: Ddl,dml and DCL.1. DDL (Data Definition Language)A data definition language that defines and manages the language of all objects in a SQL
Mysql implements transaction commit and rollback. The official syntax for mysql to create a storage process is as follows:
The code is as follows:Start transaction | BEGIN [WORK]COMMIT [WORK] [AND [NO] CHAIN] [[NO] RELEASE]ROLLBACK [WORK] [AND [NO]
The following three points are to be noted for using transactions:1. In MySQL, transactions are supported only by databases or tables that use the INNODB database engine.2, transaction processing can be used to maintain the integrity of the database,
The official syntax for creating a stored procedure in mysql is:
Copy codeThe Code is as follows:Start transaction | BEGIN [WORK]COMMIT [WORK] [AND [NO] CHAIN] [[NO] RELEASE]ROLLBACK [WORK] [AND [NO] CHAIN] [[NO] RELEASE]Set autocommit = {0 |
The official syntax for MySQL to create a stored procedure is:
Copy Code code as follows:
START TRANSACTION | BEGIN [WORK]
COMMIT [WORK] [and [No] CHAIN] [[No] release]
ROLLBACK [WORK] [and [No] CHAIN] [[No] release]
SET
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.